package icu.jogeen.markbook.data;

import java.text.SimpleDateFormat;

public class DataConvert {

    private static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");

    public static String[] convert(NoteData noteData) {
        String[] raw = new String[4];
        raw[0] = noteData.getTitle();
        raw[1] = noteData.getMark();
        raw[2] = noteData.getFileName();
        raw[3] = format.format(noteData.getTime());
        return raw;
    }

}
